export const formTypeEnum = {
    addtoblacklist: '加入黑名单',
    remove: '移出供应商库',
    removefromblacklist: '移出黑名单',
    warehouse: '入库',
} as const

export const tableTypeEnum = {
    blackList: '黑名单记录',
    inAndOut: '出入库记录',
}

export type Tree = {
    [key: string]: any
}

export const inAndOutColumns = [
    { title: '序号', type: 'seq', width: 50 },
    { field: 'supplierName', title: '入库供应商' },
    { field: 'buyerName', title: '采购商' },
    { field: 'remark', title: '说明' },
    { field: 'createBy', title: '操作人' },
    { field: 'createTime', title: '操作时间' },
    { field: 'file', slots: { default: 'file' }, title: '附件' },
]

export const blackListColumns = [
    { title: '序号', type: 'seq', width: 50 },
    { field: 'supplierName', title: '供应商名称' },
    { field: 'remark', title: '说明' },
    { field: 'catName', title: '服务类别' },
    { field: 'createBy', title: '操作人' },
    { field: 'createTime', title: '操作时间' },
    { field: 'file', slots: { default: 'file' }, title: '附件' },
    { slots: { default: 'opreate' }, title: '操作' },
]
